kbuild: Make the toolchain variables easily overwritable
authorBastian Blank <waldi@debian.org>
Sun, 22 Feb 2009 14:39:35 +0000 (15:39 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 12 Mar 2026 12:28:10 +0000 (13:28 +0100)
commit8ecb8874ddbc224981d7e7f5c8911b4f16d66d81
treeae76c58a6cb7645fface88882685ddcc8745217b
parentf23b041600188f522d0737ab5823722dde321d2c
kbuild: Make the toolchain variables easily overwritable

Forwarded: not-needed

Allow make variables to be overridden for each flavour by a file in
the build tree, .kernelvariables.

We currently use this for ARCH, KERNELRELEASE, CC, and in some cases
also CROSS_COMPILE, KCFLAGS.

This file can only be read after we establish the build tree, and all
use of $(ARCH) needs to be moved after this.

[bwh: Updated for 5.3: include .kernelvariables from current directory
 rather than using undefined $(obj).]

[carnil: Update for 6.13: Include .kernelvariables from $(objtree).]

Gbp-Pq: Topic debian
Gbp-Pq: Name kernelvariables.patch
Makefile